const express = require("express");
const app = express();


app.set("view engine", "ejs");
app.get("/news", (req, res) => {
    res.render("demo", {
        "news": ["a", "b", "c"]
    })
})

//静态文件的引入，读取
// app.use(express.static("./public"));

// app.get("/admin/:id", (req, res) => {
//     res.send(`员工:${req.params.id}`)
// })


app.listen(3000)